package com.attendance.service.impl;

import com.attendance.entity.Employee;
import com.attendance.mapper.EmployeeMapper;
import com.attendance.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EmployeeServiceImpl implements EmployeeService {
    @Autowired
    EmployeeMapper employeeMapper;

    @Override
    public Employee getByName(String username) {
        Employee e = employeeMapper.getByName(username);
        return e;
    }

    @Override
    public Employee getById(Long id) {
        Employee e = employeeMapper.getById(id);
        return e;
    }
}

